package com.ruoyi.train.mapper;

import java.util.List;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.ruoyi.train.domain.JyTrainingSchoolCourseMaterial;
import org.apache.ibatis.annotations.Param;

/**
 * 培训课程物资Mapper接口
 *
 * @author aulbrother
 * @date 2024-04-06
 */
public interface JyTrainingSchoolCourseMaterialMapper
{
    /**
     * 查询培训课程物资
     *
     * @param id 培训课程物资主键
     * @return 培训课程物资
     */
    @DS("train")
    JyTrainingSchoolCourseMaterial selectJyTrainingSchoolCourseMaterialById(Long id);

    /**
     * 查询培训课程物资列表
     *
     * @param jyTrainingSchoolCourseMaterial 培训课程物资
     * @return 培训课程物资集合
     */
    @DS("train")
    List<JyTrainingSchoolCourseMaterial> selectJyTrainingSchoolCourseMaterialList(JyTrainingSchoolCourseMaterial jyTrainingSchoolCourseMaterial);

    /**
     * 修改培训课程物资
     *
     * @param jyTrainingSchoolCourseMaterial 培训课程物资
     * @return 结果
     */
    @DS("train")
    int updateJyTrainingSchoolCourseMaterial(JyTrainingSchoolCourseMaterial jyTrainingSchoolCourseMaterial);

    @DS("train")
    List<JyTrainingSchoolCourseMaterial> selectJyTrainingSchoolCourseMaterialByCourseId(@Param("courseId") Long courseId);
}
